package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.DeviceDto;
import com.zzyl.dto.DevicePageQueryDto;
import com.zzyl.entity.Device;
import com.zzyl.vo.DeviceVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DeviceMapper {

    Integer selectDeviceByName(String deviceName);

    void insert(Device device);

    Page<DeviceVo> pageQueryDevice(DevicePageQueryDto devicePageQueryDto);

    DeviceVo queryByIotId(String iotId);

    void updateDevice(DeviceDto deviceDto);

    void deleteDevice(String iotId);

    List<Long> queryNursingIdByIotIdWithElder(String iotId);

    List<Long> queryNursingIdByIotIdWithBed(String iotId);
}
